package lab02.test20;

/**
 * Created by ASUS on 2017/10/28.
 */
import java.util.regex.*;

import java.util.*;

    public class Input {

    public static void main(String args[]) {

        System.out.println("please input :");

        Scanner reader = new Scanner(System.in);

        String s1 = reader.nextLine();

        Pattern p;

        Matcher m;

        p = Pattern.compile("\\d+");

        m = p.matcher(s1);

        while (m.find()) {

            String str = m.group();

            System.out.println(str);
        }
    }
}